import dva from 'dva';
import './index.css';
import 'bootstrap/dist/css/bootstrap.min.css';

import {createBrowserHistory as createHistory} from 'history';

// 1. Initialize
const app = dva({history:createHistory()});

// 2. Plugins
// app.use({});

// 3. Model
// app.model(require('./models/example').default);
app.model(require('./models/count').default);
app.model(require('./models/message').default);
app.model(require('./models/user').default);


// 4. Router
app.router(require('./router').default);

// 5. Start
app.start('#root');
